<?php
/**
 * CreateTime: 2023/7/13 11:32
 * 管理员用的路由
 */
use Illuminate\Support\Facades\Route;

Route::get('/',function (){
    die("非法访问");
});





Route::post('login', [\App\Http\Controllers\Login\AdminLoginController::class,'adminLogin']);
Route::get('currentAdmin', [\App\Http\Controllers\Admin\AdminStaff\AdminStaffController::class,'getCurrentAdminStaffInfo']);

// 权限相关

// 客户相关
// 管理端新增用户
Route::post('customer',[\App\Http\Controllers\Customer\CustomerController::class,'addCustomerByAdminCreated']);
Route::get('customer',[\App\Http\Controllers\Customer\CustomerController::class,'getCustomerList']);
Route::get('customer/{customerId}',[\App\Http\Controllers\Customer\CustomerController::class,'getCustomerInfo']);
Route::post('editCustomer/{customerId}',[\App\Http\Controllers\Customer\CustomerController::class,'editCustomerInfo']);
Route::post('resetCustomerBindStaffPwd/{customerId}',[\App\Http\Controllers\Customer\CustomerController::class,'resetCustomerBindStaffPassword']);

// 审批相关
Route::get('sendLetterList',[\App\Http\Controllers\MeSendLetter\AdminMeSendLetterController::class,'getSendLetterList']);
Route::post('checkSendLetter/{letterCacheId}',[\App\Http\Controllers\MeSendLetter\AdminMeSendLetterController::class,'checkSendLetter']);
Route::post('approvedLetter/{letterCacheId}',[\App\Http\Controllers\MeSendLetter\AdminMeSendLetterController::class,'approvedLetter']);
Route::post('approvedNoPassLetter/{letterCacheId}',[\App\Http\Controllers\MeSendLetter\AdminMeSendLetterController::class,'approvedNoPassLetter']);
Route::get('previewCaseInfo/{letterCacheId}',[\App\Http\Controllers\MeSendLetter\AdminMeSendLetterController::class,'getPreviewCaseInfo']);
//Route::get();